// @Title  config_server.go
// @Description 用来获取配置信息
// @Author  IT搬运工
// @Update
package server

import (
	"intelligentgateway/src/dao"
)

//获取发送端 Protobuff TCP配置信息
func GetProtobuffTransportTcpConfig() *dao.TransportTcpInfo {
	dbConn := dao.GetDB()
	var protobuffTcpInfo dao.TransportTcpInfo
	dbConn.Where("state == ? and type == ?", 0, 0).First(&protobuffTcpInfo)
	return &protobuffTcpInfo
}
